import { memo, useEffect } from "react";
import Top from "../../components/top/Top";
import { useParams } from "react-router-dom";

import ToHome from "../../components/toHome/ToHome";
import styles from "./bookDetails.module.scss";

import Details from "../../components/details/Details";
let BookDetails: React.FC = () => {
  let { id } = useParams();
  return (
    <>
      <ToHome /> {/*返回首页按钮*/}
      <Top title="书籍详情" />
      <Details id={id!} />
    </>
  );
};
export default memo(BookDetails);
